package com.csinc.generate.core.make.impl.freemarker;

import com.csinc.generate.core.make.impl.MakeProjectMaker;

/**
 * Create By 郭金宝 on 2018/7/25.<br>
 */
public class ApplicationBootMaker extends MakeProjectMaker<ApplicationBootMaker> {

    protected String projectRootPackage;

    public ApplicationBootMaker projectRootPackage(String projectRootPackage) {
        this.projectRootPackage = projectRootPackage;
        return this;
    }

    @Override
    public ApplicationBootMaker make() {
        data();
        this.out("applicationBoot.ftl", data);
        return this;
    }

    @Override
    public void data() {
        fileName = "ApplicationBoot.java";
        data.put("projectRootPackage", projectRootPackage);
    }
}
